package com.cmwa.solution.sys.permission.operRole.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cmwa.solution.annotation.MybatisDao;
import com.cmwa.solution.base.dao.BaseDao;
import com.cmwa.solution.sys.permission.operRole.entity.OperRoleMenu;

@MybatisDao
public interface OperRoleMenuDao extends BaseDao<OperRoleMenu> {

	/**
	 * 根据角色ID查找菜单ID
	 * @param roleId
	 * @return
	 */
	List<String> queryRoleDefaultSelectedMenu(String roleId);

	/**
	 * 根据角色ID删除关联表数据
	 * @param string
	 */
	void deleteRoleMenuByUnionId(@Param("roleId") String roleId,@Param("belongSystem")  String belongSystem);

	/**
	 * 批量插入
	 * @param list
	 */
	void insertBatchRoleMenu(List<OperRoleMenu> list);
}
